package com.han.adapter.object_adapter;

/**
 * @ClassName Client
 * @Description 描述该类的功能
 * @Author duoduo Han
 * @Date 2024/6/6 15:32
 */
public class Client {
    public static void main(String[] args) {
        Computer computer = new Computer();
        String msg = computer.readSD(new SDCardImpl());
        System.out.println(msg);

        System.out.println("=======================================");

        //使用该计算机读取TF卡中的数据
        //定义适配器类
        String msg1 = computer.readSD(new SDAdapterTF(new TFCardImpl()));
    }
}
